home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OWLINC.PAK / RADIOBUT.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  67 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1991, 1997 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   10.3  $
  6. //
  7. // Definition of class TRadioButton.  This defines the basic behavior for all
  8. // radio buttons.
  9. //----------------------------------------------------------------------------
  10. #if !defined(OWL_RADIOBUT_H)
  11. #define OWL_RADIOBUT_H
  12.  
  13. #if !defined(OWL_CHECKBOX_H)
  14. # include <owl/checkbox.h>
  15. #endif
  16.  
  17. #if defined(BI_NAMESPACE)
  18. namespace OWL {
  19. #endif
  20.  
  21. // Generic definitions/compiler options (eg. alignment) preceeding the 
  22. // definition of classes
  23. #include <services/preclass.h>
  24.  
  25. //
  26. // class TRadioButton
  27. // ~~~~~ ~~~~~~~~~~~~
  28. class _OWLCLASS TRadioButton : public TCheckBox {
  29.   public:
  30.     TRadioButton(TWindow*        parent,
  31.                  int             id,
  32.                  const char far* title,
  33.                  int x, int y, int w, int h,
  34.                  TGroupBox*      group = 0,
  35.                  TModule*        module = 0);
  36.  
  37.     TRadioButton(TWindow*   parent,
  38.                  int        resourceId,
  39.                  TGroupBox* group = 0,
  40.                  TModule*   module = 0);
  41.  
  42.   protected:
  43.     // Child id notification handled at the child
  44.     //
  45.     void       BNClicked();  // BN_CLICKED
  46.     char far*  GetClassName();
  47.  
  48.   private:
  49.     // Hidden to prevent accidental copying or assignment
  50.     //
  51.     TRadioButton(const TRadioButton&);
  52.     TRadioButton& operator=(const TRadioButton&);
  53.       
  54.   DECLARE_RESPONSE_TABLE(TRadioButton);
  55.   DECLARE_STREAMABLE(_OWLCLASS, TRadioButton, 1);
  56. };
  57.  
  58. // Generic definitions/compiler options (eg. alignment) following the 
  59. // definition of classes
  60. #include <services/posclass.h>
  61.  
  62. #if defined(BI_NAMESPACE)
  63. } // namespace OWL
  64. #endif
  65.  
  66. #endif  // OWL_RADIOBUT_H
  67.